package model

type Topic struct {
	Id        uint      `json:"id" gorm:"primaryKey;autoIncrement"`
	TopicId   string    `json:"topic_id" gorm:"column:topic_id;type:varchar(10)"`
	RentType  RentType  `json:"rent_type" gorm:"column:rent_type;"`
	HouseType HouseType `json:"house_type" gorm:"column:house_type"`
	City      City      `json:"city" gorm:"column:city"`
}

func (t Topic) TableName() string {
	return "topic"
}
